package com.ruoyi.system.domain;

import com.ruoyi.common.utils.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 entity_customer
 * 
 * @author ruoyi
 * @date 2020-12-27
 */
public class EntityCustomer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String name;

    /** 客户地址 */
    @Excel(name = "客户地址")
    private String address;

    /** 座机号码 */
    @Excel(name = "座机号码")
    private String tel;
    /** 联系人 */
    @Excel(name = "联系人")
    private String contacts;
    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /**  0-无效 1有效 */
    @Excel(name = "有效性",readConverterExp="0=无效,1=有效")
    private Integer valid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) {
        if(!StringUtils.isEmpty(name)){
            this.name = name.trim();
        }
    }

    public String getName() 
    {
        return name;
    }
    public void setAddress(String address) {
        if(!StringUtils.isEmpty(address)){
            this.address = address.trim();
        }
    }

    public String getAddress() 
    {
        return address;
    }
    public void setTel(String tel) {
        if(!StringUtils.isEmpty(tel)){
            this.tel = tel.trim();
        }
    }

    public String getTel() 
    {
        return tel;
    }
    public void setPhone(String phone) {
        if(!StringUtils.isEmpty(phone)){
            this.phone = phone.trim();
        }
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setIdCard(String idCard) {
        if(!StringUtils.isEmpty(idCard)){
            this.idCard = idCard.trim();
        }
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setValid(Integer valid)
    {
        this.valid = valid;
    }

    public Integer getValid()
    {
        return valid;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        if(!StringUtils.isEmpty(contacts)){
            this.contacts = contacts.trim();
        }
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("address", getAddress())
            .append("contacts", getContacts())
            .append("tel", getTel())
            .append("phone", getPhone())
            .append("idCard", getIdCard())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("valid", getValid())
            .toString();
    }
}
